package com.haixin.security.dao;

import com.haixin.security.bean.RolePermission;

import java.util.List;

public interface RolePermissionMapper {
    List<RolePermission> getAllRolePermissions();
    List<Integer> getPermissionsByRoleId(int roleId);
    int insertRolePermission(RolePermission rolePermission);
    int deleteRolePermissionsByRoleId(int roleId);
    int deleteRolePermission(RolePermission rolePermission);
}
